home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / DVIM72-Mac 1.9.6 / source / TextDisplay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-14  |  941 b   |  49 lines  |  [TEXT/R*ch]

  1. #if STACK_PROBLEMS
  2. #define CHK(x)    TD_printf( "(" x " %ld) ", StackSpace() )
  3. #else
  4. #define CHK(x)
  5. #endif
  6.  
  7.  
  8. #define INACTIVE    255
  9. #define ACTIVE        0
  10.  
  11. #define TEXT_MARGIN            10
  12.  
  13. #ifndef GROW_ICON_SIZE
  14. #define GROW_ICON_SIZE        16
  15. #endif
  16.  
  17. #ifndef nil
  18. #define nil 0L
  19. #endif
  20.  
  21. typedef struct {
  22.     WindowRecord    window;
  23.     TEHandle        text;
  24.     int                max_text;
  25.     int                min_text;
  26. } TD_record, *TD_peek;
  27.  
  28. extern  WindowPtr    g_console_window;
  29.  
  30. WindowPtr TD_new(
  31.     int        window_id,        /* ID of WIND resource */
  32.     int        max_text,        /* keep at most this many characters */
  33.     int        min_text,        /* don't discard any text until so much */
  34.     int        text_size,        /* font size */
  35.     OSErr    *status );        /* error code */
  36. void    TD_resize( void);
  37. void    TD_printf( char *format, ... );
  38. void    TD_update( void );
  39. void    TD_click( Point where );
  40. void    TD_activate( Boolean activate );
  41. void    TD_close_log( void );
  42.  
  43. #ifndef TD_COPYABLE
  44. #define TD_COPYABLE 1
  45. #endif
  46.  
  47. #if TD_COPYABLE
  48. void    TD_copy( void );
  49. #endif